(function(global, document, _fns, $, console) {
  'use strict';

  /*
      @desc
  
      @author
  
      @access protected
  
      @function exc._fast_click
   */
  _fns.sidebar = function() {
    var _excSlideEffect, _switchCurrent, mnu, mnuLvl1, sidebar;
    sidebar = $('.aside-nav');
    mnu = sidebar.find('a');
    mnuLvl1 = $('.menu-level-1-title');
    _excSlideEffect = function(e) {
      var _parent, _siblings, mnuLvl2, that;
      that = $(this);
      _parent = that.parent();
      _siblings = _parent.siblings('li');
      mnuLvl2 = _siblings.find('.menu-level-2-hidden');
      _parent.find('.menu-level-2-hidden').slideToggle({
        duration: 400,
        queue: false
      });
      mnuLvl2.slideUp();
    };
    /*_switchCurrent = function(e) {
      var _current, selectedMnu, that;
      e.stopPropagation();
      e.preventDefault();
      that = $(this);
      _current = that.parent();
      selectedMnu = sidebar.find('li.selected');
      selectedMnu.removeClass('selected');
      _current.addClass('selected');
    };*/
    mnuLvl1.on('click', _excSlideEffect);
    // mnu.on('click', _switchCurrent);
  };
  global.lsBar = _fns.sidebar;
})(window, document, {}, jQuery, (typeof console !== 'undefined' ? console : void 0));
